<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
		<meta name="renderer" content="webkit|ie-comp|ie-stand">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<title>标签设置</title>
		<link rel="stylesheet" href="../common/css/sccl.css">
		<link rel="stylesheet" href="../common/css/layui.css">
		<link rel="stylesheet" href="../common/css/healthmanagement.css" />
		<script type="text/javascript" src="../common/lib/jquery-1.9.0.min.js"></script>
		<script type="text/javascript" src="../common/layui/layui.js" ></script>
		<script type="text/javascript">
		$(function(){
			$(".addopenbtn").click(function(){
				addopen.sid=1;
				layui.use('layer', addopen);
			});
			var addopen= function(){
				layer.open({
                        title: '输入标签名称',
                        type: 1,
                        content: document.getElementById('code-temp').innerHTML,
                        btn: ['确定'],
                        yes: function (index, layero) {
                            var $code = $('#namement');
                            if ($code.val() === '') {
                                layer.msg('请输入标签名');
                                isCheck = false;
                            } else {
                                console.log($code.val()+"-"+addopen.sid);
                                layer.close(index);
                            }
                        },
                        area: ['500px', '160px']
                    });
			}
		})
			
		</script>
	</head>
	<body>
		<!--healthlabel-->
		<p style="padding-top: 10px;">
			<span class="layui-breadcrumb" style="visibility: visible;">
  				<a><cite>健康中心</cite><span class="layui-box">></span></a>
 		 		<a href="healthlabel.html">标签设置</a>
			</span>
		</p>
		<table class="layui-table">
  <thead>
    <tr>
      <th>栏目名称</th>
      <th>栏目顺序号</th>
      <th>创建时间</th>
      <th>操作</th>
    </tr> 
  </thead>
  <tbody>
    <tr>
      <td>生活</td>
      <td>0</td>
      <td>2012.12.12 12.12.12</td>
      <td>
      	<a href="lookabel.html?id=1" class="layui-btn layui-btn-small">查看标签</a>
      	<button class="layui-btn layui-btn-small layui-btn-normal addopenbtn">新增标签</button>
      </td>
    </tr>
    <tr>
      <td>生活</td>
      <td>0</td>
      <td>2012.12.12 12.12.12</td>
      <td>
      	<a href="lookabel.html" class="layui-btn layui-btn-small">查看标签</a>
      	<button class="layui-btn layui-btn-small layui-btn-normal addopenbtn">新增标签</button>
      </td>
    </tr>
    <tr>
      <td>生活</td>
      <td>0</td>
      <td>2012.12.12 12.12.12</td>
      <td>
      	<a href="lookabel.html" class="layui-btn layui-btn-small">查看标签</a>
      	<button class="layui-btn layui-btn-small layui-btn-normal addopenbtn">新增标签</button>
      </td>
    </tr>
  </tbody>
</table>
<div class="layui-form-item" style="width: 600px;margin: 0 auto;">
  <div class="layui-inline">
    <div class="layui-input-inline layui-width-auto">
      <button class="layui-btn layui-btn-primary layui-btn-small">上一页</button>
    </div>
    <div class="layui-input-inline layui-width-auto">
      <button class="layui-btn layui-btn-primary layui-btn-small">下一页</button>
    </div>
    <div class="layui-input-inline layui-width-auto">
    	<div class="layui-form-mid">共<span>99</span>页 到第</div>
      <input type="number" name="price_min" autocomplete="off" class="layui-input layui-input-tx">
  		
    </div>
    <div class="layui-input-inline layui-width-auto">
    	<div class="layui-form-mid">页</div>
      <button class="layui-btn layui-btn-primary layui-btn-small">跳转</button>
    </div>
    <div class="layui-form-mid">当前页数：5</div>
  </div>
</div>
<script type="text/html" id="code-temp">
    <div class="layui-form-item" style="padding-top: 10px;">
  		<label class="layui-form-label">栏目名称</label>
  		<div class="layui-input-block">
    		<input id="namement" type="text" maxlength="10" name="title" style="width: 350px;" required lay-verify="required" placeholder="请输入名称" autocomplete="off" class="layui-input">
  		</div>
	</div>
	
</script>
	</body>
</html>
